/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.easyedu.dictionary.api.resources;

import java.net.URL;
import java.util.ResourceBundle;
import org.openide.util.NbBundle;

/**
 *
 * @author hlavki
 */
public final class Bundle {

    private Bundle() {
    }

    public static ResourceBundle getBundle() {
        return NbBundle.getBundle(Bundle.class);
    }

    public static String getMessage(String key) {
        return NbBundle.getMessage(Bundle.class, key);
    }

    public static String getMessage(String key, Object... params) {
        return NbBundle.getMessage(Bundle.class, key, params);
    }

    public static String getResourcesPath() {
        return Bundle.class.getPackage().getName().replace('.', '/');
    }

    public static URL getClasspathResource(String key) {
        return Bundle.class.getResource("/" + getResourcesPath() + "/" + key);
    }
}
